RUN apt-get update && apt-get install -y --no-install-recommends apt-utils && apt-get install -y apt dpkg libapt-pkg5.0 && apt-get upgrade -y
# install packages needed for gpsbabel build
-RUN apt-get install -y g++ clang make autoconf gperf git expat fop valgrind xsltproc libxml2-utils qt5-default libqt5webkit5-dev qttools5-dev-tools libusb-dev docbook-xml docbook-xsl
+# split into multiple commands to limit layer size
+RUN apt-get install -y g++ make autoconf gperf git valgrind
+RUN apt-get install -y clang
+RUN apt-get install -y expat fop xsltproc libxml2-utils docbook-xml docbook-xsl
+RUN apt-get install -y libusb-dev
+RUN apt-get install -y qt5-default libqt5webkit5-dev qttools5-dev-tools
# install environment for locale test
RUN apt-get install -y locales && sed -i 's/^# *\(en_US ISO-8859-1\)/\1/' /etc/locale.gen && locale-gen && locale -a
--- /dev/null
+#!/bin/bash -e
+# you must be logged into docker for the push to succeed.
+tag=$(date -u +%Y%m%dT%H%M%SZ)
+docker build -t gpsbabel_build_environment:latest .
+docker tag gpsbabel_build_environment:latest gpsbabel_build_environment:$tag
+docker tag gpsbabel_build_environment:latest tsteven4/gpsbabel_build_environment:latest
+docker tag gpsbabel_build_environment:latest tsteven4/gpsbabel_build_environment:$tag
+docker push tsteven4/gpsbabel_build_environment:$tag
+docker push tsteven4/gpsbabel_build_environment:latest
+docker image ls